package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/10/27.
 */

public class PhysicalExaminationAppointmentBean implements Parcelable{

    private String reserveId;//": "integer",
    private String title;//": "string,标题",
    private String price;//": "string,价格区域",
    private String unit;//": "string,单位",
    private String cityId;//": "integer,市级ID(2级)",
    private String districtId;//": "integer,区/县级ID(3级)"
    private String remark;
    private String content;

    public PhysicalExaminationAppointmentBean() {
    }

    public PhysicalExaminationAppointmentBean(String reserveId, String title, String price, String unit, String cityId, String districtId, String remark, String content) {
        this.reserveId = reserveId;
        this.title = title;
        this.price = price;
        this.unit = unit;
        this.cityId = cityId;
        this.districtId = districtId;
        this.remark = remark;
        this.content = content;
    }

    public String getReserveId() {
        return reserveId;
    }

    public void setReserveId(String reserveId) {
        this.reserveId = reserveId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getDistrictId() {
        return districtId;
    }

    public void setDistrictId(String districtId) {
        this.districtId = districtId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "PhysicalExaminationAppointmentBean{" +
                "reserveId='" + reserveId + '\'' +
                ", title='" + title + '\'' +
                ", price='" + price + '\'' +
                ", unit='" + unit + '\'' +
                ", cityId='" + cityId + '\'' +
                ", districtId='" + districtId + '\'' +
                ", remark='" + remark + '\'' +
                ", content='" + content + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.reserveId);
        dest.writeString(this.title);
        dest.writeString(this.price);
        dest.writeString(this.unit);
        dest.writeString(this.cityId);
        dest.writeString(this.districtId);
        dest.writeString(this.remark);
        dest.writeString(this.content);
    }

    protected PhysicalExaminationAppointmentBean(Parcel in) {
        this.reserveId = in.readString();
        this.title = in.readString();
        this.price = in.readString();
        this.unit = in.readString();
        this.cityId = in.readString();
        this.districtId = in.readString();
        this.remark = in.readString();
        this.content = in.readString();
    }

    public static final Creator<PhysicalExaminationAppointmentBean> CREATOR = new Creator<PhysicalExaminationAppointmentBean>() {
        @Override
        public PhysicalExaminationAppointmentBean createFromParcel(Parcel source) {
            return new PhysicalExaminationAppointmentBean(source);
        }

        @Override
        public PhysicalExaminationAppointmentBean[] newArray(int size) {
            return new PhysicalExaminationAppointmentBean[size];
        }
    };
}
